home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
INITCOLO.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
53 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#ifndef NDEBUG
char *rcsid_initcolo = "$Header: c:/curses/portable/RCS/initcolo.c%v 2.0 1992/11/15 03:28:55 MH Rel $";
#endif
/*man-start*********************************************************************
init_color() - Change the definition of a color.
PDCurses Description:
This routine is used to change the definition of a color.
The routine takes four arguments: the number of the color to be
redefined, and the new values of the red, green and blue
components of the color.
The value of color must be between 0 and COLORS-1.
The values of red, green and blue must each fall between 0 and
1000;
***** This function doesn't do anything yet *****
PDCurses Return Value:
This function returns OK if the color change was possible or
ERR on error.
PDCurses Errors:
N/A
Portability:
PDCurses int init_color( int color, short red, short green, short blue);
SYS V curses int init_color( int color, short red, short green, short blue);
**man-end**********************************************************************/
int init_color(int color, short red, short green, short blue)
{
extern int COLORS;
if (color >= COLORS -1 || color < 1)
return(ERR);
/*
* This function doesn't do anything yet...
*/
return(ERR);
}